<!--猜你喜欢-->
<template>
  <div class="guess_like">
    <h2>猜你喜欢 <span>换一换</span></h2>
    <div class="member_click_list">
      <ul>
        <li class="clearfix" v-for="item in likeBook.list" :key="item.bookId">
          <a @click="goXq(item.bookId)">
            <img class="fengmian" @click="goXq(item.bookId)" :src="item.imgUrl" alt="">
            <h3>{{item.bookName}}</h3>
            <span>{{item.author}}</span>
            <p>{{item.introduction}}</p>
            <span class="sing">{{item.bookType}}</span>
          </a>
        </li>
      </ul>
    </div>
  </div>
</template>

<script>
  export default {
    props: ['likeBook'],
    data () {
      return {
        msg: '数据初始化'
      }
    },
    methods: {
      goXq (bookid) {
        this.$router.push( { name: 'bookinfo', params: { bookid: bookid }})
      }
    }
  }
</script>


<style>
  .guess_like{
    background: #fff;
    margin-top: 10px;
    padding-top: 16px;
    width: 320px;
    overflow: hidden;
  }
  .guess_like h2{
    margin: 0px 16px 10px;
    border-left: 6px solid #f60;
    text-indent: 8px;
    font-size: 18px;
    height: 16px;
    line-height: 16px;
    font-weight: normal;
    position: relative;
  }
  .guess_like h2 span{
    position: absolute;
    color: #F60;
    font-size: 13.44px;
    right: 0;
    bottom: -4px;
    padding-left: 8px;
    background: url(../../../../static/img/newlist_ico.png) no-repeat 0px center;
    background-size: 13.4px;
  }
  .guess_like .member_click_list{
    margin: 0 14px;
  }
  .guess_like .member_click_list ul li{
    padding: 7px 0;
    border-bottom: 1px dotted #ECECEC;
  }
  .guess_like .member_click_list ul li:last-of-type{
    border-bottom: none;
  }
  .guess_like .member_click_list ul li .sing{
    border: 1px solid #ECECEC;
    color: #999;
    padding: 0 2px;
  }
  .guess_like .member_click_list ul li img.fengmian{
    width: 70px;
    border-right: 5px solid #DDD;
    border-bottom: 3px solid #CCC;
    box-shadow: 1px 2px 3px rgba(0,0,0,.3);
    float:left;
    margin-right: 14px;
  }
  .guess_like .member_click_list ul li em.click_num img{
    width: 12px;
  }
  .guess_like .member_click_list ul li a span,.member_click_list ul li a p{
    color:#666;
    font-size: 13px;
    line-height: 13px;
    margin:6px 0 ;
  }
  .guess_like .member_click_list ul li a h3{
  color:#333;
  font-weight: normal;
  line-height: 34px;
  font-size: 16px;
  margin-bottom: 3px;

}

</style>
